import { $post,$get } from "../utils/request.ts";
//查询加盟信息进行审核
export const $franchise = async () => {
    const ret = await $get("/audit/findFranchise");
    return ret;
}
//根据id查询加盟信息进行审核
export const $franchiseById = async (params:object) => {
    const ret = await $get("/audit/findFranchiseId",params);
    return ret;
}
// 提交加盟审核操作
export const $updateFranchise = async(params:object) =>{
    let ret = await $post('/audit/updateFranchise',params)
    return ret;
}
//查询酒店信息
export const $hotelExam = async () => {
    const ret = await $get("/audit/findHotel");
    return ret;
}
//根据酒店id查询酒店信息进行审核
export const $hotelExamById = async (params:object) => {
    const ret = await $get("/audit/findHotelId",params);
    return ret;
}
// 提交酒店图片审核操作
export const $updateHotelExam = async(params:object) =>{
    let ret = await $post('/audit/updateHotel',params)
    return ret;
}
//查询房间信息
export const $roomExam = async () => {
    const ret = await $get("/audit/findRoomType");
    return ret;
}
//根据房型id查询房型信息进行审核
export const $roomTypeExamById = async (params:object) => {
    const ret = await $get("/audit/findRoomTypeId",params);
    return ret;
}
// 提交房型图片审核操作
export const $updateRoomTypeExam = async(params:object) =>{
    let ret = await $post('/audit/updateAuditRoomType',params)
    return ret;
}